function checkedValue() {
	var rv = new Array();
	var obj = null;
	inerDivCheck = $("#main_Tree_DIV").find("input:checkbox");
	inerDivCheck.each(function(i) {
				if (this.checked) {
					obj = new Object();
					obj.id = this.nodeid || this.getAttribute("nodeid");
					obj.name = this.nodename || this.getAttribute("nodename");
					if(r.leafSelect){
						obj.select = (($("#sel" + obj.id).val() != undefined && $("#sel"+ obj.id).val() != 'undefined')? $("#sel" + obj.id).val(): -1);
					}
					rv.push(obj);
				}
			});
	
	window.returnValue = rv;
	window.close();
}